package edu.ihs.lhpy.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import edu.ihs.lhpy.base.BaseDaoImpl;
import edu.ihs.lhpy.domain.Privilege;
import edu.ihs.lhpy.service.PrivilegeService;

@Service
public class PrivilegeServiceImpl extends BaseDaoImpl<Privilege> implements PrivilegeService{

	@SuppressWarnings("unchecked")
	@Override
	public List<Privilege> findTopList() {
		return getSession().createQuery(//
				"FROM Privilege p WHERE p.parent IS NULL")//
				.list();
	}

	@Override
	public List<Privilege> findMyList() {
		return null;
	}

}
